package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.SalesUserWallet;
import com.ecoolex.hotel.saas.entity.SalesUserWalletExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface SalesUserWalletMapper {
    long countByExample(SalesUserWalletExample example);

    int deleteByExample(SalesUserWalletExample example);

    int deleteByPrimaryKey(Integer walletId);

    int insert(SalesUserWallet record);

    int insertSelective(@Param("record") SalesUserWallet record, @Param("selective") SalesUserWallet.Column ... selective);

    SalesUserWallet selectOneByExample(SalesUserWalletExample example);

    List<SalesUserWallet> selectByExample(SalesUserWalletExample example);

    SalesUserWallet selectByPrimaryKey(Integer walletId);

    SalesUserWallet selectByPrimaryKeyWithLogicalDelete(@Param("walletId") Integer walletId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") SalesUserWallet record, @Param("example") SalesUserWalletExample example, @Param("selective") SalesUserWallet.Column ... selective);

    int updateByExample(@Param("record") SalesUserWallet record, @Param("example") SalesUserWalletExample example);

    int updateByPrimaryKeySelective(@Param("record") SalesUserWallet record, @Param("selective") SalesUserWallet.Column ... selective);

    int updateByPrimaryKey(SalesUserWallet record);

    int batchInsert(@Param("list") List<SalesUserWallet> list);

    int batchInsertSelective(@Param("list") List<SalesUserWallet> list, @Param("selective") SalesUserWallet.Column ... selective);

    int logicalDeleteByExample(@Param("example") SalesUserWalletExample example);

    int logicalDeleteByPrimaryKey(Integer walletId);
}